<template>
  <div>
    <van-tabbar v-model="activeItem" active-color="#9fc6ff" inactive-color="#000"  route>
      <van-tabbar-item name="home" icon="home-o" to="/home">首页</van-tabbar-item>
      <van-tabbar-item name="hot" icon="fire-o" to="/hot">热门</van-tabbar-item>
      <van-tabbar-item name="member" icon="gem-o" to="/member">VIP</van-tabbar-item>
      <van-tabbar-item name="mine" icon="friends-o"  to="/mine">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  props: {
    active: {
      type: String,
      default: "home"
    },
  },
  data() {
    return {
      activeItem: "home"
    }
  },
  created () {
    this.activeItem = this.active;
  },
};
</script>

<style lang="scss" scoped>
</style>